<?php
/**
 * ExtGroupingView class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtGroupingView extends ExtGridView
{
    /**
     * Gets the value of ExtJS emptyGroupText property
     * @return String 
     */
    public function getEmptyGroupText()
    {
    	return $this->getConfig("emptygrouptext");
    }

    /**
     * Sets the value of ExtJS emptyGroupText property
     * @param String $value 
     */
    public function setEmptyGroupText($value)
    {
    	$this->setConfig("emptygrouptext",$value);
    }

    /**
     * Gets the value of ExtJS enableGrouping property
     * @return Boolean 
     */
    public function getEnableGrouping()
    {
    	return $this->getConfig("enablegrouping");
    }

    /**
     * Sets the value of ExtJS enableGrouping property
     * @param Boolean $value 
     */
    public function setEnableGrouping($value)
    {
    	$this->setConfig("enablegrouping",$value);
    }

    /**
     * Gets the value of ExtJS enableGroupingMenu property
     * @return Boolean 
     */
    public function getEnableGroupingMenu()
    {
    	return $this->getConfig("enablegroupingmenu");
    }

    /**
     * Sets the value of ExtJS enableGroupingMenu property
     * @param Boolean $value 
     */
    public function setEnableGroupingMenu($value)
    {
    	$this->setConfig("enablegroupingmenu",$value);
    }

    /**
     * Gets the value of ExtJS enableNoGroups property
     * @return Boolean 
     */
    public function getEnableNoGroups()
    {
    	return $this->getConfig("enablenogroups");
    }

    /**
     * Sets the value of ExtJS enableNoGroups property
     * @param Boolean $value 
     */
    public function setEnableNoGroups($value)
    {
    	$this->setConfig("enablenogroups",$value);
    }

    /**
     * Gets the value of ExtJS groupByText property
     * @return String 
     */
    public function getGroupByText()
    {
    	return $this->getConfig("groupbytext");
    }

    /**
     * Sets the value of ExtJS groupByText property
     * @param String $value 
     */
    public function setGroupByText($value)
    {
    	$this->setConfig("groupbytext",$value);
    }

    /**
     * Gets the value of ExtJS groupMode property
     * @return String 
     */
    public function getGroupMode()
    {
    	return $this->getConfig("groupmode");
    }

    /**
     * Sets the value of ExtJS groupMode property
     * @param String $value 
     */
    public function setGroupMode($value)
    {
    	$this->setConfig("groupmode",$value);
    }

    /**
     * Gets the value of ExtJS groupRenderer property
     * @return Function 
     */
    public function getGroupRenderer()
    {
    	return $this->getConfig("grouprenderer");
    }

    /**
     * Sets the value of ExtJS groupRenderer property
     * @param Function $value 
     */
    public function setGroupRenderer($value)
    {
    	$this->setConfig("grouprenderer",$value);
    }

    /**
     * Gets the value of ExtJS groupTextTpl property
     * @return String 
     */
    public function getGroupTextTpl()
    {
    	return $this->getConfig("grouptexttpl");
    }

    /**
     * Sets the value of ExtJS groupTextTpl property
     * @param String $value 
     */
    public function setGroupTextTpl($value)
    {
    	$this->setConfig("grouptexttpl",$value);
    }

    /**
     * Gets the value of ExtJS hideGroupedColumn property
     * @return Boolean 
     */
    public function getHideGroupedColumn()
    {
    	return $this->getConfig("hidegroupedcolumn");
    }

    /**
     * Sets the value of ExtJS hideGroupedColumn property
     * @param Boolean $value 
     */
    public function setHideGroupedColumn($value)
    {
    	$this->setConfig("hidegroupedcolumn",$value);
    }

    /**
     * Gets the value of ExtJS ignoreAdd property
     * @return Boolean 
     */
    public function getIgnoreAdd()
    {
    	return $this->getConfig("ignoreadd");
    }

    /**
     * Sets the value of ExtJS ignoreAdd property
     * @param Boolean $value 
     */
    public function setIgnoreAdd($value)
    {
    	$this->setConfig("ignoreadd",$value);
    }

    /**
     * Gets the value of ExtJS showGroupName property
     * @return Boolean 
     */
    public function getShowGroupName()
    {
    	return $this->getConfig("showgroupname");
    }

    /**
     * Sets the value of ExtJS showGroupName property
     * @param Boolean $value 
     */
    public function setShowGroupName($value)
    {
    	$this->setConfig("showgroupname",$value);
    }

    /**
     * Gets the value of ExtJS showGroupsText property
     * @return String 
     */
    public function getShowGroupsText()
    {
    	return $this->getConfig("showgroupstext");
    }

    /**
     * Sets the value of ExtJS showGroupsText property
     * @param String $value 
     */
    public function setShowGroupsText($value)
    {
    	$this->setConfig("showgroupstext",$value);
    }

    /**
     * Gets the value of ExtJS startCollapsed property
     * @return Boolean 
     */
    public function getStartCollapsed()
    {
    	return $this->getConfig("startcollapsed");
    }

    /**
     * Sets the value of ExtJS startCollapsed property
     * @param Boolean $value 
     */
    public function setStartCollapsed($value)
    {
    	$this->setConfig("startcollapsed",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'emptygrouptext' => 'emptyGroupText',
            'enablegrouping' => 'enableGrouping',
            'enablegroupingmenu' => 'enableGroupingMenu',
            'enablenogroups' => 'enableNoGroups',
            'groupbytext' => 'groupByText',
            'groupmode' => 'groupMode',
            'grouprenderer' => 'groupRenderer',
            'grouptexttpl' => 'groupTextTpl',
            'hidegroupedcolumn' => 'hideGroupedColumn',
            'ignoreadd' => 'ignoreAdd',
            'showgroupname' => 'showGroupName',
            'showgroupstext' => 'showGroupsText',
            'startcollapsed' => 'startCollapsed'
        ));


        $this->jsconfigs = array_merge($this->jsconfigs,array(
            'groupRenderer' => true
        ));

        $this->setXType(null);
        $this->setXClass('Ext.grid.GroupingView');
    }    
}
?>